package com.gnl.scheduler.classifica;

import com.beeweeb.services.tps.JobExecutor;
import com.beeweeb.services.tps.JobPool;
import com.beeweeb.services.tps.JobPoolExecutor;
import com.scm.endpoint.IService;
import com.scm.endpoint.ServiceImpl;

import org.apache.log4j.Logger;

public class SchedulerExecutorClassifica{
    private static Logger log = Logger.getLogger("GNLGB");
    
    public SchedulerExecutorClassifica() {
   
    }

    @JobExecutor
    public void executeJob(){
    	log.info("--- SCHEDULER SCM CLASSIFICA ---");
    	log.info("-> START JOB");
    	IService service = new ServiceImpl();
    	service.ingestionClassifiche();
    	log.info("-> END   JOB");
    }



	@JobPoolExecutor
	public void executeJobPool(JobPool j) {
	    try {
	        j.pushJob(SchedulerExecutorClassifica.class, null);
	    } catch (Exception e) {
	        log.error("SCHEDULER_FAIL Exception in executeJobPool: ", e);
	    }
	}
  

}

    
  
